<%@ page import="java.util.ArrayList" %>
<%@ page import="com.itheima.servletlet.Student" %><%--
  Created by IntelliJ IDEA.
  User: 15593
  Date: 2021/7/17
  Time: 19:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>查找页面</title>
</head>
<body>
<table width="600px" border="1px" >
    <tr>
        <th>学生姓名</th>
        <th>学生年龄</th>
        <th>学生成绩</th>
    </tr>
    <% ArrayList<Student> students = (ArrayList<Student>) session.getAttribute("Students"); %>
    <% for (Student student : students) {
    %>
    <tr align="center">
        <td><%= student.getUsername() %>
        </td>
        <td><%= student.getAge()%>
        </td>
        <td><%= student.getScore() %>
        </td>
    </tr>
    <%}%>
</table>
</body>
</html>
